<template>
    <div class="brand">
        <div class="banner">
            <img :src="brand.app_list_pic_url" alt="">
            <h2>{{brand.name}}</h2>
        </div>
        <p>{{brand.simple_desc}}</p>
    </div>
</template>

<script>
import {GetBrand} from "@/request/api"
export default {
    data(){
        return{
            id:'',
            brand:''
        }
    },
    created(){
      this.id=this.$route.query.id
         GetBrand({id:this.id}).then(res=>{
            //    console.log(res);
              this.brand=res.data.brand
         })
    }
}
</script>

<style lang="less">
.banner{
    width: 100%;
    position: relative;
}
.banner img{
    display: block;
    width: 100%;
}
.banner h2{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    height: 30px;
    line-height: 30px;
    margin: auto;
    font-size: 20px;
    text-decoration: underline;
    color: #fff;
}
.brand p{
    background: #fff;
    font-size: 18px;
    text-align: center;
    padding: 20px 10px;
    line-height: 26px;
    color: #666;
}
</style>